<template>
  <view class="item">
    <view class="title">{{title}}</view>
    <view class="value">
      <slot name="default">
        <view>{{value}}</view>
      </slot>
    </view>
  </view>
</template>
<script>
export default {
  name: "y-form-item",
  props:{
    title:{
      type:String,
      required:true
    },
    value:{
      type:String,
      default:''
    }
  }
}
</script>



<style scoped lang="scss">
.item{
  display: flex;
  justify-content: space-between;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f5f5f5;

  .title{
    min-width: 160rpx;
    width:auto;
  }
  .value{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-height: 40rpx;
    line-height: 40rpx;
    color:#838287;
  }
}

</style>
